﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using NUnit.Framework;
//using AL100.BankApplication.BLL;

//namespace AL100.BankApplication.Tests
//{
//    [TestFixture]
//    public class Test_GoldAccount
//    {
//        private AccountEventArgs eventResult;

//        [Test]
//        public void Test_Event_OverdrawnWithdrawal()
//        {
//            AccountBase account;// = new GoldAccount("titi", "toto", 100);
//            account.OverdrawnWithdrawal += new EventHandler<AccountEventArgs>(OnAccountOverdrawnWithdrawal);

//            // On retire  300
//            account.Withdraw(12000);

//            bool condition1 = (eventResult.AuthorizedOverdrawn == account.GetMaxOverdrawnAmount());
//            bool condition2 = eventResult.CurrentBalance == account.Balance;
//            bool condition3 = eventResult.OverdrawnExcess == account.Balance + account.GetMaxOverdrawnAmount();

//            Assert.IsTrue(condition1 && condition2 && condition3);
//        }

//        void OnAccountOverdrawnWithdrawal(object sender, AccountEventArgs e)
//        {
//            eventResult = e;
//        }
//    }
//}
